import { IMiddleware, NextFunction } from '@midwayjs/core';
import { Middleware } from '@midwayjs/decorator';
import { Context } from 'egg';

@Middleware()
export class LoginMiddleware implements IMiddleware<Context, NextFunction> {

  resolve() {
    return async (ctx: Context, next: NextFunction) => {
      console.log('--开始--')
      await next();
    };
  }

  static getName(): string {
    return 'report';
  }
}